package com.apartment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author apartment
 * @since 2022-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ApRent对象", description="")
public class ApRent implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租房id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "租客id")
    private int userId;

    @ApiModelProperty(value = "房间id")
    private Integer houseId;

    @ApiModelProperty(value = "状态 居住、退房")
    private String status;

    @ApiModelProperty(value = "租房时间")
    private int time;

    @ApiModelProperty(value = "价格")
    private Float price;

    @TableField(exist = false)
    private ApUser apUser;

    @TableField(exist = false)
    private ApHouse apHouse;


}
